{template 'common/header'}
{template 'nav'}
<form action="" method="post" class="form-horizontal" role="form">
<input type="hidden" value="{$redpack_config['id']}"  name="redpack_config_id">
<div class="panel panel-default">
	<div class="panel-heading">基本设置</div>	
	<div class="panel-body">
	<div class="tab-content">
	<div class="tab-pane  active" id="tab_basic">
		<div class="panel panel-default">
			<div class="panel-heading"></div>					
			<div class="panel-body">
				<div class="form-group" style="display:none">
					<label class="col-xs-12 col-sm-3 col-md-2  control-label">当前公众号是否开通了微信支付</label>
					<div class="col-sm-9 ">
						<label class="radio-inline">
							<input type="radio" name="weixin_pay" value="0" id="show_time_0" {if $redpack_config['weixin_pay'] == '0'}checked="true"{/if} onclick="show_music1()">否
						</label>
						<label class="radio-inline">
							<input type="radio" name="weixin_pay" value="0" id="show_time_1"  {if $redpack_config['weixin_pay'] == '1'}checked="true"{/if} onclick="show_music2()">是
						</label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">开通了微信支付的公众号appid</label>
					<div class="col-sm-9">
						<input type="text"  class="form-control" name="appid" placeholder="" value="{$redpack_config['appid']}">
						<span class="help-block"><span class="label label-success">登陆微信公众平台 复制粘贴过来</span></span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">开通了微信支付的公众号appsecret</label>
					<div class="col-sm-9">
						<input type="text"  class="form-control" name="secret" placeholder="" value="{$redpack_config['secret']}">
						<span class="help-block"><span class="label label-success">登陆微信公众平台 复制粘贴过来</span></span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">开通了微信支付微信支付商户号</label>
					<div class="col-sm-9">
						<input type="text"  class="form-control" name="mchid" placeholder="" value="{$redpack_config['mchid']}">
						<span class="help-block"><span class="label label-success">登陆微信商户平台 复制粘贴过来</span></span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">开通了微信支付的微信支付秘钥</label>
					<div class="col-sm-9">
						<input type="text"  class="form-control" name="signkey" placeholder="" value="{$redpack_config['signkey']}">
						<span class="help-block"><span class="label label-success">登陆微信商户平台 复制粘贴过来</span></span>
					</div>
				</div>
				 <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">商户支付证书<font color=red>{if $_cert==1}已经上传{/if}</font></label>
                    <div class="col-sm-9 col-xs-12">
                        <textarea class="form-control" name="cert" rows="8" placeholder="为保证安全性, 不显示证书内容. 若要修改, 请直接输入"></textarea>
                        <span class="help-block">从商户平台上下载支付证书, 解压并取得其中的 <mark>apiclient_cert.pem</mark> 用记事本打开并复制文件内容, 填至此处</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">支付证书私钥<font color=red>{if $_key==1}已经上传{/if}</font></label>
                    <div class="col-sm-9 col-xs-12">
                        <textarea class="form-control" name="key" rows="8" placeholder="为保证安全性, 不显示证书内容. 若要修改, 请直接输入"></textarea>
                        <span class="help-block">从商户平台上下载支付证书, 解压并取得其中的 <mark>apiclient_key.pem</mark> 用记事本打开并复制文件内容, 填至此处</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">支付根证书<font color=red>{if $_ca==1}已经上传{/if}</font></label>
                    <div class="col-sm-9 col-xs-12">
                        <textarea class="form-control" name="ca" rows="8" placeholder="为保证安全性, 不显示证书内容. 若要修改, 请直接输入"></textarea>
                        <span class="help-block">从商户平台上下载支付证书, 解压并取得其中的 <mark>rootca.pem</mark> 用记事本打开并复制文件内容, 填至此处</span>
                    </div>
                </div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">当前服务器ip地址</label>
					<div class="col-sm-9">
						<input type="text"  class="form-control" name="ip" placeholder="" value="{$redpack_config['ip']}">
						<span class="help-block"><span class="label label-success">当前服务器ip地址 咨询平台管理员</span></span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">企业支付接口发放红包提示文字</label>
					<div class="col-sm-9">
						<input type="text"  class="form-control" name="_desc" placeholder="" value="{$redpack_config['_desc']}">
						<span class="help-block"><span class="label label-success">企业支付接口发放红包提示文字 </span></span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">粉丝当前活动最多抢得红包个数</label>
					<div class="col-sm-9">
						<input type="text"  class="form-control" name="all_nums" placeholder="" value="{$redpack_config['all_nums']}">
						<span class="help-block"><span class="label label-success">粉丝当前活动最多抢得红包个数 整数 单位: 个</span></span>
					</div>
				</div>
				<div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">抢红包活动规则</label>
                    <div class="col-xs-12 col-sm-9">
                        {php echo tpl_ueditor('guize',$redpack_config['guize'])}
									<span class="help-block">抢红包活动规则</span>
                    </div>
                </div>
				<div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">抢红包提示语</label>
                    <div class="col-xs-12 col-sm-9">
                        {php echo tpl_ueditor('tip_words',$redpack_config['tip_words'])}
									<span class="help-block">抢红包提示语</span>
                    </div>
                </div>
			</div>
		</div>
		<div class="form-group col-sm-12">
			<input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
			<input type="hidden" name="token" value="{$_W['token']}" />
		</div>

	</div>
	</div>
	</div>
	</div>
	</form>
{template 'common/footer'}
